package homework;

import java.util.Scanner;

public class Homework1 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int money = scan.nextInt();
		int num = scan.nextInt();
		switch (num) {
		case 1:
			System.out.println(money * 0.031);
			break;
		case 2:
			System.out.println(money * 0.033);
			break;
		case 3:
			System.out.println(money * 0.035);
			break;
		case 4:
			System.out.println(money * 0.044);
			break;
		case 5:
			System.out.println(money * 0.05);
			break;
		case 6:
			System.out.println(money * 0.055);
			break;
		default:
			System.out.println("输入错误");
			break;
		}
		scan.close();
	}
}
